package com.kfm.am;

class Egg{
    private Yolk y;
    protected class Yolk{
        public Yolk(){
            System.out.println("Egg.Yolk()");
        }
    }
    public Egg(){
        System.out.println("New Egg");
        y = new Yolk();
    }
}

public class BigEgg extends Egg{
//    public class Yolk{
//        public Yolk(){
//            System.out.println("BigEgg.Yolk");
//        }
//    }

    BigEgg() {
        System.out.println("new BigEgg");
        Yolk y = new Yolk();
    }
    public static void main(String[] args){
        BigEgg bigEgg = new BigEgg(); //
        bigEgg.new Yolk();
    }
}